function checkSub(){
	
	if(document.getElementById('good_id').value==''){
		alert('0');
		document.getElementById('good_id').focus();
		return false;
	}
	
	if(document.getElementById('good_name').value==''){
		alert('0');
		document.getElementById('good_name').focus();
		return false;
	}
	
	if(document.getElementById('prices').value==''){
		alert('0');
		document.getElementById('prices').focus();
		return false;
	}
	
	if(document.getElementById('enabled').value==''){
		alert('0');
		document.getElementById('enabled').focus();
		return false;
	}
	
	if(document.getElementById('in_date').value==''){
		alert('0');
		document.getElementById('in_date').focus();
		return false;
	}
	
	document.addForm.submit();
}

function search(){
	//TODO
	document.indexForm.submit();
}
